package com.tanhua.dubbo.api.mongo;


import com.tanhua.model.mongo.Comment;
import com.tanhua.model.vo.PageResult;
import org.bson.types.ObjectId;

public interface CommentApi {
    PageResult<Comment> getComment(PageResult result, ObjectId movementId);


    void putComment(Comment comments);

    Integer likeComment(ObjectId id);

    Integer dislikeComment(ObjectId id);

    PageResult<Comment> getCommentAll(Long pageResult,Long size,Long id);

    boolean isLike(ObjectId id, Long userId);

    boolean isLove(ObjectId id, Long userId);
}
